package pokerhelper.gui;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

@SuppressWarnings("serial")
public class SpinBoxPanel extends JPanel  implements ChangeListener {

	public SpinBoxPanel() {
		
		//Spinbox
		JSpinner spinner = new JSpinner();
		this.add(spinner,BorderLayout.NORTH);
		this.setSize(100,100);
		this.setVisible(true);
		
		spinner.addChangeListener(this);
	}
	
	public static void main(String[] args) {
		JFrame frame = new JFrame("Creating a JSpinner Component");
		SpinBoxPanel h = new SpinBoxPanel();
		frame.getContentPane().add(h);
		frame.setBounds(100,100,300,100);
		frame.setVisible(true);
	}

	@Override
	public void stateChanged(ChangeEvent arg0) {
		// TODO Auto-generated method stub
		
	}

}
